package com.sky.earnmoney.api;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class NetWorkUtils {
    private static final NetWorkUtils sInstance = new NetWorkUtils();

    public static NetWorkUtils getInstance(){
        return sInstance;
    }

    Retrofit retrofit;
    Api api;

    public NetWorkUtils(){
        retrofit =  new Retrofit.Builder().baseUrl("http://wxyh007.cn/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();

       api = retrofit.create(Api.class);
    }

    public Api getApi(){
        return api;
    }
}
